home *** CD-ROM | disk | FTP | other *** search
-
- /* A Bison parser, made from ./ldgram.y with Bison version GNU Bison version 1.24
- */
-
- #define YYBISON 1 /* Identify Bison output. */
-
- #define INT 258
- #define NAME 259
- #define LNAME 260
- #define PLUSEQ 261
- #define MINUSEQ 262
- #define MULTEQ 263
- #define DIVEQ 264
- #define LSHIFTEQ 265
- #define RSHIFTEQ 266
- #define ANDEQ 267
- #define OREQ 268
- #define OROR 269
- #define ANDAND 270
- #define EQ 271
- #define NE 272
- #define LE 273
- #define GE 274
- #define LSHIFT 275
- #define RSHIFT 276
- #define UNARY 277
- #define END 278
- #define ALIGN_K 279
- #define BLOCK 280
- #define BIND 281
- #define QUAD 282
- #define LONG 283
- #define SHORT 284
- #define BYTE 285
- #define SECTIONS 286
- #define PHDRS 287
- #define SIZEOF_HEADERS 288
- #define OUTPUT_FORMAT 289
- #define FORCE_COMMON_ALLOCATION 290
- #define OUTPUT_ARCH 291
- #define INCLUDE 292
- #define MEMORY 293
- #define DEFSYMEND 294
- #define NOLOAD 295
- #define DSECT 296
- #define COPY 297
- #define INFO 298
- #define OVERLAY 299
- #define DEFINED 300
- #define TARGET_K 301
- #define SEARCH_DIR 302
- #define MAP 303
- #define ENTRY 304
- #define SIZEOF 305
- #define NEXT 306
- #define ADDR 307
- #define STARTUP 308
- #define HLL 309
- #define SYSLIB 310
- #define FLOAT 311
- #define NOFLOAT 312
- #define ORIGIN 313
- #define FILL 314
- #define LENGTH 315
- #define CREATE_OBJECT_SYMBOLS 316
- #define INPUT 317
- #define GROUP 318
- #define OUTPUT 319
- #define CONSTRUCTORS 320
- #define ALIGNMOD 321
- #define AT 322
- #define PROVIDE 323
- #define CHIP 324
- #define LIST 325
- #define SECT 326
- #define ABSOLUTE 327
- #define LOAD 328
- #define NEWLINE 329
- #define ENDWORD 330
- #define ORDER 331
- #define NAMEWORD 332
- #define FORMAT 333
- #define PUBLIC 334
- #define BASE 335
- #define ALIAS 336
- #define TRUNCATE 337
- #define REL 338
- #define INPUT_SCRIPT 339
- #define INPUT_MRI_SCRIPT 340
- #define INPUT_DEFSYM 341
- #define CASE 342
- #define EXTERN 343
- #define START 344
-
- #line 21 "./ldgram.y"
-
- /*
-
- */
-
- #define DONTDECLARE_MALLOC
-
- #include "bfd.h"
- #include "sysdep.h"
- #include "bfdlink.h"
- #include "ld.h"
- #include "ldexp.h"
- #include "ldver.h"
- #include "ldlang.h"
- #include "ldemul.h"
- #include "ldfile.h"
- #include "ldmisc.h"
- #include "ldmain.h"
- #include "mri.h"
- #include "ldlex.h"
-
- #ifndef YYDEBUG
- #define YYDEBUG 1
- #endif
-
- static enum section_type sectype;
-
- lang_memory_region_type *region;
-
-
- char *current_file;
- boolean ldgram_want_filename = true;
- boolean had_script = false;
- boolean force_make_executable = false;
-
- boolean ldgram_in_script = false;
- boolean ldgram_had_equals = false;
-
-
- #define ERROR_NAME_MAX 20
- static char *error_names[ERROR_NAME_MAX];
- static int error_index;
- #define PUSH_ERROR(x) if (error_index < ERROR_NAME_MAX) error_names[error_index] = x; error_index++;
- #define POP_ERROR() error_index--;
-
- #line 66 "./ldgram.y"
- typedef union {
- bfd_vma integer;
- char *name;
- int token;
- union etree_union *etree;
- struct phdr_info
- {
- boolean filehdr;
- boolean phdrs;
- union etree_union *at;
- union etree_union *flags;
- } phdr;
- } YYSTYPE;
-
- #ifndef YYLTYPE
- typedef
- struct yyltype
- {
- int timestamp;
- int first_line;
- int first_column;
- int last_line;
- int last_column;
- char *text;
- }
- yyltype;
-
- #define YYLTYPE yyltype
- #endif
-
- #include <stdio.h>
-
- #ifndef __cplusplus
- #ifndef __STDC__
- #define const
- #endif
- #endif
-
-
-
- #define YYFINAL 440
- #define YYFLAG -32768
- #define YYNTBASE 113
-
- #define YYTRANSLATE(x) ((unsigned)(x) <= 344 ? yytranslate[x] : 189)
-
- static const char yytranslate[] = { 0,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 111, 2, 2, 2, 34, 21, 2, 37,
- 108, 32, 30, 106, 31, 2, 33, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 16, 107, 24,
- 10, 25, 15, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 109, 2, 110, 20, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 47, 19, 48, 112, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 1, 2, 3, 4, 5,
- 6, 7, 8, 9, 11, 12, 13, 14, 17, 18,
- 22, 23, 26, 27, 28, 29, 35, 36, 38, 39,
- 40, 41, 42, 43, 44, 45, 46, 49, 50, 51,
- 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
- 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
- 72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
- 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
- 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
- 102, 103, 104, 105
- };
-
- #if YYDEBUG != 0
- static const short yyprhs[] = { 0,
- 0, 3, 6, 9, 11, 12, 17, 18, 21, 25,
- 26, 29, 34, 36, 38, 41, 43, 48, 53, 57,
- 60, 65, 69, 74, 79, 84, 89, 94, 97, 100,
- 103, 108, 113, 116, 119, 122, 125, 126, 132, 135,
- 136, 140, 143, 144, 146, 150, 152, 156, 157, 159,
- 163, 165, 169, 170, 173, 176, 177, 179, 181, 183,
- 185, 187, 189, 191, 193, 195, 200, 205, 210, 215,
- 224, 229, 231, 236, 237, 243, 248, 249, 255, 257,
- 261, 264, 266, 270, 273, 278, 281, 284, 285, 290,
- 293, 295, 299, 301, 302, 307, 308, 314, 315, 321,
- 324, 326, 328, 330, 332, 337, 342, 345, 347, 348,
- 350, 352, 354, 356, 358, 361, 362, 364, 366, 368,
- 370, 372, 374, 376, 378, 380, 382, 386, 390, 397,
- 399, 400, 406, 409, 413, 414, 415, 423, 427, 431,
- 435, 436, 441, 446, 450, 454, 456, 461, 465, 466,
- 468, 470, 471, 474, 477, 481, 486, 489, 492, 495,
- 499, 503, 507, 511, 515, 519, 523, 527, 531, 535,
- 539, 543, 547, 551, 555, 559, 565, 569, 573, 578,
- 580, 582, 587, 592, 597, 602, 607, 609, 614, 615,
- 616, 617, 618, 619, 620, 636, 637, 638, 646, 648,
- 650, 652, 654, 656, 660, 661, 665, 668, 675, 686,
- 689, 690, 691, 695, 700, 701, 704, 705, 706, 713,
- 715, 716, 720, 726, 727
- };
-
- static const short yyrhs[] = { 100,
- 127, 0, 101, 117, 0, 102, 115, 0, 4, 0,
- 0, 116, 4, 10, 166, 0, 0, 118, 119, 0,
- 119, 120, 90, 0, 0, 85, 166, 0, 85, 166,
- 106, 166, 0, 4, 0, 86, 0, 92, 122, 0,
- 91, 0, 95, 4, 10, 166, 0, 95, 4, 106,
- 166, 0, 95, 4, 166, 0, 94, 4, 0, 87,
- 4, 106, 166, 0, 87, 4, 166, 0, 87, 4,
- 10, 166, 0, 38, 4, 10, 166, 0, 38, 4,
- 106, 166, 0, 82, 4, 10, 166, 0, 82, 4,
- 106, 166, 0, 88, 124, 0, 89, 123, 0, 93,
- 4, 0, 97, 4, 106, 4, 0, 97, 4, 106,
- 3, 0, 96, 166, 0, 98, 3, 0, 103, 125,
- 0, 104, 126, 0, 0, 53, 114, 121, 119, 36,
- 0, 105, 4, 0, 0, 122, 106, 4, 0, 122,
- 4, 0, 0, 4, 0, 123, 106, 4, 0, 4,
- 0, 124, 106, 4, 0, 0, 4, 0, 125, 106,
- 4, 0, 4, 0, 126, 106, 4, 0, 0, 128,
- 129, 0, 129, 130, 0, 0, 151, 0, 134, 0,
- 181, 0, 158, 0, 159, 0, 161, 0, 163, 0,
- 136, 0, 107, 0, 62, 37, 4, 108, 0, 63,
- 37, 114, 108, 0, 80, 37, 114, 108, 0, 50,
- 37, 4, 108, 0, 50, 37, 4, 106, 4, 106,
- 4, 108, 0, 52, 37, 4, 108, 0, 51, 0,
- 78, 37, 133, 108, 0, 0, 79, 131, 37, 133,
- 108, 0, 64, 37, 114, 108, 0, 0, 53, 114,
- 132, 129, 36, 0, 4, 0, 133, 106, 4, 0,
- 133, 4, 0, 5, 0, 133, 106, 5, 0, 133,
- 5, 0, 45, 47, 135, 48, 0, 135, 168, 0,
- 135, 136, 0, 0, 65, 37, 4, 108, 0, 149,
- 148, 0, 4, 0, 137, 150, 4, 0, 4, 0,
- 0, 109, 139, 137, 110, 0, 0, 4, 140, 37,
- 137, 108, 0, 0, 32, 141, 37, 137, 108, 0,
- 149, 148, 0, 77, 0, 107, 0, 81, 0, 138,
- 0, 145, 37, 166, 108, 0, 75, 37, 166, 108,
- 0, 143, 142, 0, 142, 0, 0, 143, 0, 41,
- 0, 42, 0, 43, 0, 44, 0, 10, 164, 0,
- 0, 6, 0, 7, 0, 8, 0, 9, 0, 11,
- 0, 12, 0, 13, 0, 14, 0, 107, 0, 106,
- 0, 4, 10, 164, 0, 4, 147, 164, 0, 84,
- 37, 4, 10, 164, 108, 0, 106, 0, 0, 54,
- 47, 153, 152, 48, 0, 152, 153, 0, 152, 106,
- 153, 0, 0, 0, 4, 154, 157, 16, 155, 150,
- 156, 0, 74, 10, 164, 0, 76, 10, 164, 0,
- 37, 4, 108, 0, 0, 69, 37, 114, 108, 0,
- 70, 37, 160, 108, 0, 70, 37, 108, 0, 160,
- 150, 114, 0, 114, 0, 71, 37, 162, 108, 0,
- 162, 150, 114, 0, 0, 72, 0, 73, 0, 0,
- 165, 166, 0, 31, 166, 0, 37, 166, 108, 0,
- 67, 37, 166, 108, 0, 111, 166, 0, 30, 166,
- 0, 112, 166, 0, 166, 32, 166, 0, 166, 33,
- 166, 0, 166, 34, 166, 0, 166, 30, 166, 0,
- 166, 31, 166, 0, 166, 28, 166, 0, 166, 29,
- 166, 0, 166, 22, 166, 0, 166, 23, 166, 0,
- 166, 26, 166, 0, 166, 27, 166, 0, 166, 24,
- 166, 0, 166, 25, 166, 0, 166, 21, 166, 0,
- 166, 20, 166, 0, 166, 19, 166, 0, 166, 15,
- 166, 16, 166, 0, 166, 18, 166, 0, 166, 17,
- 166, 0, 61, 37, 4, 108, 0, 3, 0, 49,
- 0, 66, 37, 4, 108, 0, 68, 37, 4, 108,
- 0, 88, 37, 166, 108, 0, 38, 37, 166, 108,
- 0, 39, 37, 166, 108, 0, 4, 0, 83, 37,
- 166, 108, 0, 0, 0, 0, 0, 0, 0, 4,
- 169, 178, 167, 170, 47, 171, 144, 48, 172, 179,
- 180, 146, 173, 150, 0, 0, 0, 79, 174, 178,
- 175, 47, 135, 48, 0, 56, 0, 57, 0, 58,
- 0, 59, 0, 60, 0, 37, 176, 108, 0, 0,
- 166, 177, 16, 0, 177, 16, 0, 40, 37, 166,
- 108, 177, 16, 0, 40, 37, 166, 108, 39, 37,
- 166, 108, 177, 16, 0, 25, 4, 0, 0, 0,
- 180, 16, 4, 0, 46, 47, 182, 48, 0, 0,
- 182, 183, 0, 0, 0, 4, 184, 186, 187, 185,
- 107, 0, 166, 0, 0, 4, 188, 187, 0, 83,
- 37, 166, 108, 187, 0, 0, 37, 166, 108, 0
- };
-
- #endif
-
- #if YYDEBUG != 0
- static const short yyrline[] = { 0,
- 127, 129, 130, 134, 137, 139, 146, 152, 159, 161,
- 164, 166, 167, 170, 173, 174, 175, 177, 179, 181,
- 183, 185, 187, 189, 191, 193, 195, 197, 198, 199,
- 201, 203, 205, 207, 209, 210, 211, 212, 213, 215,
- 218, 220, 221, 224, 227, 230, 233, 237, 239, 240,
- 243, 246, 250, 255, 261, 263, 268, 270, 271, 272,
- 273, 274, 275, 276, 277, 278, 280, 282, 284, 287,
- 289, 291, 293, 294, 296, 298, 300, 301, 304, 308,
- 311, 314, 317, 320, 325, 329, 331, 332, 335, 338,
- 341, 344, 348, 353, 358, 359, 363, 364, 368, 371,
- 373, 377, 378, 383, 384, 389, 399, 401, 404, 406,
- 409, 412, 414, 416, 420, 428, 433, 436, 438, 440,
- 442, 444, 446, 448, 453, 453, 457, 462, 470, 477,
- 478, 481, 485, 487, 488, 492, 494, 497, 503, 512,
- 517, 521, 526, 528, 532, 535, 540, 542, 545, 548,
- 551, 556, 558, 561, 564, 566, 568, 570, 572, 575,
- 577, 579, 581, 583, 585, 587, 589, 591, 593, 595,
- 597, 599, 601, 603, 605, 607, 609, 611, 613, 615,
- 617, 620, 622, 624, 626, 628, 630, 635, 637, 640,
- 642, 644, 650, 650, 656, 656, 662, 666, 669, 671,
- 672, 673, 674, 677, 679, 682, 684, 685, 690, 694,
- 697, 700, 702, 708, 712, 714, 717, 719, 721, 727,
- 757, 762, 774, 781, 786
- };
-
- static const char * const yytname[] = { "$","error","$undefined.","INT","NAME",
- "LNAME","PLUSEQ","MINUSEQ","MULTEQ","DIVEQ","'='","LSHIFTEQ","RSHIFTEQ","ANDEQ",
- "OREQ","'?'","':'","OROR","ANDAND","'|'","'^'","'&'","EQ","NE","'<'","'>'","LE",
- "GE","LSHIFT","RSHIFT","'+'","'-'","'*'","'/'","'%'","UNARY","END","'('","ALIGN_K",
- "BLOCK","BIND","QUAD","LONG","SHORT","BYTE","SECTIONS","PHDRS","'{'","'}'","SIZEOF_HEADERS",
- "OUTPUT_FORMAT","FORCE_COMMON_ALLOCATION","OUTPUT_ARCH","INCLUDE","MEMORY","DEFSYMEND",
- "NOLOAD","DSECT","COPY","INFO","OVERLAY","DEFINED","TARGET_K","SEARCH_DIR","MAP",
- "ENTRY","SIZEOF","NEXT","ADDR","STARTUP","HLL","SYSLIB","FLOAT","NOFLOAT","ORIGIN",
- "FILL","LENGTH","CREATE_OBJECT_SYMBOLS","INPUT","GROUP","OUTPUT","CONSTRUCTORS",
- "ALIGNMOD","AT","PROVIDE","CHIP","LIST","SECT","ABSOLUTE","LOAD","NEWLINE","ENDWORD",
- "ORDER","NAMEWORD","FORMAT","PUBLIC","BASE","ALIAS","TRUNCATE","REL","INPUT_SCRIPT",
- "INPUT_MRI_SCRIPT","INPUT_DEFSYM","CASE","EXTERN","START","','","';'","')'",
- "'['","']'","'!'","'~'","file","filename","defsym_expr","@1","mri_script_file",
- "@2","mri_script_lines","mri_script_command","@3","ordernamelist","mri_load_name_list",
- "mri_abs_name_list","casesymlist","extern_name_list","script_file","@4","ifile_list",
- "ifile_p1","@5","@6","input_list","sections","sec_or_group_p1","statement_anywhere",
- "file_NAME_list","input_section_spec","@7","@8","@9","statement","statement_list",
- "statement_list_opt","length","fill_opt","assign_op","end","assignment","opt_comma",
- "memory","memory_spec_list","memory_spec","@10","origin_spec","length_spec",
- "attributes_opt","startup","high_level_library","high_level_library_NAME_list",
- "low_level_library","low_level_library_NAME_list","floating_point_support","mustbe_exp",
- "@11","exp","opt_at","section","@12","@13","@14","@15","@16","@17","@18","type",
- "atype","opt_exp_with_type","memspec_opt","phdr_opt","phdrs","phdr_list","phdr",
- "@19","@20","phdr_type","phdr_qualifiers","phdr_val",""
- };
- #endif
-
- static const short yyr1[] = { 0,
- 113, 113, 113, 114, 116, 115, 118, 117, 119, 119,
- 120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
- 120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
- 120, 120, 120, 120, 120, 120, 121, 120, 120, 120,
- 122, 122, 122, 123, 123, 124, 124, 125, 125, 125,
- 126, 126, 128, 127, 129, 129, 130, 130, 130, 130,
- 130, 130, 130, 130, 130, 130, 130, 130, 130, 130,
- 130, 130, 130, 131, 130, 130, 132, 130, 133, 133,
- 133, 133, 133, 133, 134, 135, 135, 135, 136, 136,
- 137, 137, 138, 139, 138, 140, 138, 141, 138, 142,
- 142, 142, 142, 142, 142, 142, 143, 143, 144, 144,
- 145, 145, 145, 145, 146, 146, 147, 147, 147, 147,
- 147, 147, 147, 147, 148, 148, 149, 149, 149, 150,
- 150, 151, 152, 152, 152, 154, 153, 155, 156, 157,
- 157, 158, 159, 159, 160, 160, 161, 162, 162, 163,
- 163, 165, 164, 166, 166, 166, 166, 166, 166, 166,
- 166, 166, 166, 166, 166, 166, 166, 166, 166, 166,
- 166, 166, 166, 166, 166, 166, 166, 166, 166, 166,
- 166, 166, 166, 166, 166, 166, 166, 167, 167, 169,
- 170, 171, 172, 173, 168, 174, 175, 168, 176, 176,
- 176, 176, 176, 177, 177, 178, 178, 178, 178, 179,
- 179, 180, 180, 181, 182, 182, 184, 185, 183, 186,
- 187, 187, 187, 188, 188
- };
-
- static const short yyr2[] = { 0,
- 2, 2, 2, 1, 0, 4, 0, 2, 3, 0,
- 2, 4, 1, 1, 2, 1, 4, 4, 3, 2,
- 4, 3, 4, 4, 4, 4, 4, 2, 2, 2,
- 4, 4, 2, 2, 2, 2, 0, 5, 2, 0,
- 3, 2, 0, 1, 3, 1, 3, 0, 1, 3,
- 1, 3, 0, 2, 2, 0, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 4, 4, 4, 4, 8,
- 4, 1, 4, 0, 5, 4, 0, 5, 1, 3,
- 2, 1, 3, 2, 4, 2, 2, 0, 4, 2,
- 1, 3, 1, 0, 4, 0, 5, 0, 5, 2,
- 1, 1, 1, 1, 4, 4, 2, 1, 0, 1,
- 1, 1, 1, 1, 2, 0, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 3, 3, 6, 1,
- 0, 5, 2, 3, 0, 0, 7, 3, 3, 3,
- 0, 4, 4, 3, 3, 1, 4, 3, 0, 1,
- 1, 0, 2, 2, 3, 4, 2, 2, 2, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 5, 3, 3, 4, 1,
- 1, 4, 4, 4, 4, 4, 1, 4, 0, 0,
- 0, 0, 0, 0, 15, 0, 0, 7, 1, 1,
- 1, 1, 1, 3, 0, 3, 2, 6, 10, 2,
- 0, 0, 3, 4, 0, 2, 0, 0, 6, 1,
- 0, 3, 5, 0, 3
- };
-
- static const short yydefact[] = { 0,
- 53, 7, 5, 1, 56, 2, 10, 3, 0, 54,
- 8, 0, 0, 0, 0, 0, 72, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 150, 151, 0,
- 74, 0, 0, 65, 55, 58, 64, 0, 57, 60,
- 61, 62, 63, 59, 13, 0, 0, 0, 0, 14,
- 0, 0, 0, 16, 43, 0, 0, 0, 0, 0,
- 0, 48, 0, 0, 0, 0, 117, 118, 119, 120,
- 152, 121, 122, 123, 124, 152, 88, 215, 0, 0,
- 4, 77, 0, 0, 0, 0, 0, 0, 0, 149,
- 0, 0, 0, 0, 126, 125, 90, 0, 37, 0,
- 180, 187, 0, 0, 0, 0, 0, 181, 0, 0,
- 0, 0, 0, 0, 0, 11, 0, 46, 28, 44,
- 29, 15, 30, 20, 0, 33, 0, 34, 49, 35,
- 51, 36, 39, 9, 6, 127, 0, 128, 0, 0,
- 0, 0, 56, 136, 135, 0, 0, 0, 0, 0,
- 144, 146, 131, 131, 79, 82, 0, 0, 0, 0,
- 0, 0, 10, 0, 0, 158, 154, 0, 0, 0,
- 0, 0, 0, 0, 0, 157, 159, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 22,
- 0, 0, 42, 0, 0, 0, 19, 0, 0, 0,
- 153, 190, 85, 196, 87, 86, 217, 214, 216, 0,
- 69, 71, 0, 141, 0, 66, 67, 76, 89, 142,
- 130, 143, 0, 147, 0, 81, 84, 0, 73, 0,
- 68, 152, 24, 25, 40, 26, 27, 155, 0, 0,
- 0, 0, 0, 0, 0, 0, 178, 177, 175, 174,
- 173, 167, 168, 171, 172, 169, 170, 165, 166, 163,
- 164, 160, 161, 162, 12, 23, 21, 47, 45, 41,
- 17, 18, 32, 31, 50, 52, 205, 205, 0, 0,
- 78, 0, 0, 132, 0, 133, 145, 148, 80, 83,
- 75, 0, 38, 185, 186, 179, 182, 156, 183, 184,
- 0, 0, 0, 205, 0, 189, 197, 220, 221, 0,
- 0, 0, 134, 129, 176, 199, 200, 201, 202, 203,
- 0, 0, 0, 0, 207, 0, 191, 0, 224, 0,
- 218, 0, 140, 0, 131, 204, 0, 206, 0, 0,
- 88, 0, 221, 0, 0, 70, 152, 0, 205, 0,
- 192, 0, 0, 222, 0, 219, 138, 0, 137, 0,
- 0, 188, 109, 198, 225, 221, 152, 0, 208, 93,
- 98, 111, 112, 113, 114, 0, 101, 103, 102, 94,
- 104, 108, 110, 0, 0, 0, 223, 139, 0, 0,
- 0, 0, 0, 107, 193, 0, 100, 205, 0, 0,
- 0, 91, 131, 211, 0, 0, 131, 131, 106, 95,
- 0, 0, 212, 105, 209, 97, 99, 92, 210, 116,
- 152, 0, 194, 115, 213, 131, 195, 0, 0, 0
- };
-
- static const short yydefgoto[] = { 438,
- 82, 8, 9, 6, 7, 11, 65, 163, 122, 121,
- 119, 130, 132, 4, 5, 10, 35, 92, 143, 157,
- 36, 139, 37, 413, 391, 403, 400, 401, 392, 393,
- 394, 395, 433, 76, 97, 38, 421, 39, 225, 145,
- 224, 345, 369, 293, 40, 41, 153, 42, 154, 43,
- 136, 137, 168, 337, 216, 287, 350, 373, 414, 436,
- 288, 338, 331, 315, 316, 423, 430, 44, 140, 219,
- 289, 355, 319, 341, 353
- };
-
- static const short yypact[] = { -27,
- -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 34, 381,
- 386, 53, 352, 24, 33, 56,-32768, 66, 86, 62,
- 81, 91, 118, 129, 138, 143, 144,-32768,-32768, 145,
- -32768, 151, 152,-32768,-32768,-32768,-32768, -9,-32768,-32768,
- -32768,-32768,-32768,-32768,-32768, 173, 86, 188, 240,-32768,
- 191, 192, 199,-32768,-32768, 208, 209, 217, 240, 218,
- 220, 221, 222, 224, 134, 240,-32768,-32768,-32768,-32768,
- -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 228, 229,
- -32768,-32768, 230, 231, 86, 86, 238, 86, 52,-32768,
- 97, 212, 86, 241,-32768,-32768,-32768, -2,-32768, 1,
- -32768,-32768, 240, 240, 240, 213, 215,-32768, 216, 226,
- 232, 235, 236, 240, 240, 778, 11,-32768, 155,-32768,
- 168, 8,-32768,-32768, 180, 868, 169,-32768,-32768, 174,
- -32768, 175,-32768,-32768, 868,-32768, 240,-32768, 16, 14,
- -71, 146,-32768,-32768,-32768, 147, 176, 179, 182, 189,
- -32768,-32768, -47, -39,-32768,-32768, 2, 97, 190, 289,
- 240, 240,-32768, 240, 240,-32768,-32768, 502, 240, 240,
- 300, 305, 240, 306, 240,-32768,-32768, 240, 240, 240,
- 240, 240, 240, 240, 240, 240, 240, 240, 240, 240,
- 240, 240, 240, 240, 240, 240, 240, 240, 240, 868,
- 307, 308,-32768, 309, 240, 240, 868, 102, 310, 312,
- 868, 352,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 313,
- -32768,-32768, 341, 281, 5,-32768,-32768,-32768,-32768,-32768,
- -32768,-32768, 86,-32768, 86,-32768,-32768, 149,-32768, 19,
- -32768,-32768, 868, 868, 411, 868, 868,-32768, 522, 542,
- 211, 214, 562, 219, 594, 840, 818, 884, 899, 913,
- 926, 573, 573, 140, 140, 140, 140, 131, 131, 50,
- 50,-32768,-32768,-32768, 868, 868, 868,-32768,-32768,-32768,
- 868, 868,-32768,-32768,-32768,-32768, 227, 227, 240, 225,
- -32768, 316, 314,-32768, 230,-32768,-32768,-32768,-32768,-32768,
- -32768, 233,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
- 240, 148, 284, 798, 321, 242,-32768, 868, 9, 319,
- 234, 252,-32768,-32768, 868,-32768,-32768,-32768,-32768,-32768,
- 239, 240, 142, 324,-32768, 295,-32768, 296, 311, 317,
- -32768, 247,-32768, 334, 243,-32768, 614,-32768, 240, 299,
- -32768, 240, 9, 240, 261,-32768,-32768, 274, 48, 634,
- -32768, 172, 654,-32768, 686,-32768,-32768, 360,-32768, 335,
- 355,-32768, 292,-32768,-32768, 9,-32768, 240,-32768, 20,
- -32768,-32768,-32768,-32768,-32768, 337,-32768,-32768,-32768,-32768,
- -32768,-32768, 292, 327, 342, -9,-32768,-32768, 706, 343,
- 344, 240, 374,-32768,-32768, 240,-32768, 345, 374, 374,
- 726,-32768, -70, 358, 746, 368, -17, -12,-32768,-32768,
- 384, 385,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 42,
- -32768, 392,-32768,-32768,-32768, 243,-32768, 397, 398,-32768
- };
-
- static const short yypgoto[] = {-32768,
- -42,-32768,-32768,-32768,-32768, 237,-32768,-32768,-32768,-32768,
- -32768,-32768,-32768,-32768,-32768, 259,-32768,-32768,-32768, 249,
- -32768, 57, -135, -251,-32768,-32768,-32768,-32768, 23,-32768,
- -32768,-32768,-32768,-32768, 13, -354, -151,-32768,-32768, -209,
- -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
- -75,-32768, -49,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
- -32768,-32768,-32768, -289, 130,-32768,-32768,-32768,-32768,-32768,
- -32768,-32768,-32768, -331,-32768
- };
-
-
- #define YYLAST 960
-
-
- static const short yytable[] = { 116,
- 138, 233, 235, 215, 99, 236, 237, 161, 144, 126,
- 164, 203, 339, 101, 102, 296, 135, 217, 396, 212,
- 198, 364, 236, 237, 334, 67, 68, 69, 70, 71,
- 72, 73, 74, 75, 220, 231, 221, 12, 396, 420,
- 103, 104, 147, 148, 397, 150, 152, 105, 106, 107,
- 159, 431, 294, 166, 167, 81, -96, 432, 231, 108,
- 232, 218, 66, 213, 176, 177, 231, 200, 234, 371,
- 77, 109, 1, 2, 3, 207, 110, 111, 112, 78,
- 24, 194, 195, 196, 333, 323, 370, 211, 231, 81,
- 426, 340, 79, 231, 214, 427, 95, 96, 113, 33,
- 155, 156, 80, 162, 283, 284, 165, 238, 83, 239,
- 295, 243, 244, 204, 246, 247, 199, 84, 416, 249,
- 250, 114, 115, 253, 238, 255, 301, 85, 256, 257,
- 258, 259, 260, 261, 262, 263, 264, 265, 266, 267,
- 268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
- 101, 102, 299, 300, 86, 281, 282, 417, 418, 151,
- 192, 193, 194, 195, 196, 87, 302, 190, 191, 192,
- 193, 194, 195, 196, 88, 212, 98, 103, 104, 89,
- 90, 91, 101, 102, 105, 106, 107, 93, 94, 205,
- 297, 100, 298, 358, 117, 118, 108, 326, 327, 328,
- 329, 330, 120, 326, 327, 328, 329, 330, 109, 103,
- 104, 123, 124, 110, 111, 112, 105, 106, 107, 374,
- 125, 127, 128, 134, 129, 131, 215, 133, 108, 101,
- 102, 141, 142, 144, 146, 113, 24, 314, 314, 318,
- 109, 149, 101, 102, 160, 110, 111, 112, 158, 169,
- 214, 170, 171, 222, 226, 33, 103, 104, 114, 115,
- 201, 325, 172, 312, 106, 107, 313, 113, 173, 103,
- 104, 174, 175, 202, 208, 108, 105, 106, 107, 209,
- 210, 367, 347, 227, 437, 206, 228, 109, 108, 229,
- 114, 115, 110, 111, 112, 380, 230, 241, 242, 360,
- 109, 398, 363, 251, 365, 110, 111, 112, 252, 254,
- 278, 279, 280, 285, 113, 286, 290, 292, 306, 321,
- 332, 307, 342, 381, 336, 344, 309, 113, 399, 322,
- 320, 349, 382, 383, 384, 385, 335, 114, 115, 348,
- 324, 343, 351, 357, 13, 361, 346, 352, 231, 368,
- 114, 115, 411, 354, 356, 434, 415, 67, 68, 69,
- 70, 71, 72, 73, 74, 75, 386, 366, 387, 377,
- 379, 378, 388, 402, 405, 33, 291, 412, 406, 409,
- 410, 333, 422, 425, 13, 14, 15, 428, 429, 45,
- 16, 17, 18, 19, 20, 435, 439, 440, 389, 245,
- 390, 223, 21, 22, 23, 24, 240, 362, 407, 25,
- 26, 27, 28, 29, 45, 404, 0, 317, 30, 31,
- 32, 0, 0, 46, 33, 14, 15, 0, 0, 0,
- 16, 17, 18, 19, 20, 0, 0, 0, 47, 0,
- 0, 0, 21, 22, 23, 24, 303, 34, 46, 25,
- 26, 27, 28, 29, 0, 0, 0, 0, 30, 31,
- 32, 0, 0, 47, 33, 0, 0, 48, 0, 0,
- 49, 50, 51, 52, 53, -40, 54, 55, 56, 57,
- 58, 59, 60, 61, 0, 0, 0, 34, 62, 63,
- 64, 0, 48, 0, 0, 49, 50, 51, 52, 53,
- 0, 54, 55, 56, 57, 58, 59, 60, 61, 0,
- 0, 0, 0, 62, 63, 64, 178, 0, 179, 180,
- 181, 182, 183, 184, 185, 186, 187, 188, 189, 190,
- 191, 192, 193, 194, 195, 196, 178, 0, 179, 180,
- 181, 182, 183, 184, 185, 186, 187, 188, 189, 190,
- 191, 192, 193, 194, 195, 196, 178, 0, 179, 180,
- 181, 182, 183, 184, 185, 186, 187, 188, 189, 190,
- 191, 192, 193, 194, 195, 196, 178, 0, 179, 180,
- 181, 182, 183, 184, 185, 186, 187, 188, 189, 190,
- 191, 192, 193, 194, 195, 196, 186, 187, 188, 189,
- 190, 191, 192, 193, 194, 195, 196, 0, 178, 248,
- 179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
- 189, 190, 191, 192, 193, 194, 195, 196, 178, 304,
- 179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
- 189, 190, 191, 192, 193, 194, 195, 196, 178, 305,
- 179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
- 189, 190, 191, 192, 193, 194, 195, 196, 178, 308,
- 179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
- 189, 190, 191, 192, 193, 194, 195, 196, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 178, 310, 179, 180, 181, 182, 183, 184, 185, 186,
- 187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
- 178, 359, 179, 180, 181, 182, 183, 184, 185, 186,
- 187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
- 178, 372, 179, 180, 181, 182, 183, 184, 185, 186,
- 187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
- 178, 375, 179, 180, 181, 182, 183, 184, 185, 186,
- 187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 178, 376, 179, 180, 181, 182, 183, 184,
- 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
- 195, 196, 178, 408, 179, 180, 181, 182, 183, 184,
- 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
- 195, 196, 0, 419, 333, 180, 181, 182, 183, 184,
- 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
- 195, 196, 0, 424, 178, 311, 179, 180, 181, 182,
- 183, 184, 185, 186, 187, 188, 189, 190, 191, 192,
- 193, 194, 195, 196, 0, 0, 0, 0, 0, 0,
- 0, 0, 178, 197, 179, 180, 181, 182, 183, 184,
- 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
- 195, 196, 181, 182, 183, 184, 185, 186, 187, 188,
- 189, 190, 191, 192, 193, 194, 195, 196, 182, 183,
- 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
- 194, 195, 196, 183, 184, 185, 186, 187, 188, 189,
- 190, 191, 192, 193, 194, 195, 196, 184, 185, 186,
- 187, 188, 189, 190, 191, 192, 193, 194, 195, 196
- };
-
- static const short yycheck[] = { 49,
- 76, 153, 154, 139, 47, 4, 5, 10, 4, 59,
- 10, 4, 4, 3, 4, 225, 66, 4, 373, 4,
- 10, 353, 4, 5, 314, 6, 7, 8, 9, 10,
- 11, 12, 13, 14, 106, 106, 108, 4, 393, 110,
- 30, 31, 85, 86, 376, 88, 89, 37, 38, 39,
- 93, 10, 48, 103, 104, 4, 37, 16, 106, 49,
- 108, 48, 10, 48, 114, 115, 106, 117, 108, 359,
- 47, 61, 100, 101, 102, 125, 66, 67, 68, 47,
- 65, 32, 33, 34, 37, 295, 39, 137, 106, 4,
- 108, 83, 37, 106, 79, 108, 106, 107, 88, 84,
- 4, 5, 37, 106, 3, 4, 106, 106, 47, 108,
- 106, 161, 162, 106, 164, 165, 106, 37, 408, 169,
- 170, 111, 112, 173, 106, 175, 108, 37, 178, 179,
- 180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
- 190, 191, 192, 193, 194, 195, 196, 197, 198, 199,
- 3, 4, 4, 5, 37, 205, 206, 409, 410, 108,
- 30, 31, 32, 33, 34, 37, 242, 28, 29, 30,
- 31, 32, 33, 34, 37, 4, 4, 30, 31, 37,
- 37, 37, 3, 4, 37, 38, 39, 37, 37, 10,
- 233, 4, 235, 345, 4, 4, 49, 56, 57, 58,
- 59, 60, 4, 56, 57, 58, 59, 60, 61, 30,
- 31, 4, 4, 66, 67, 68, 37, 38, 39, 48,
- 4, 4, 3, 90, 4, 4, 362, 4, 49, 3,
- 4, 4, 4, 4, 4, 88, 65, 287, 288, 289,
- 61, 4, 3, 4, 4, 66, 67, 68, 37, 37,
- 79, 37, 37, 108, 108, 84, 30, 31, 111, 112,
- 106, 311, 37, 37, 38, 39, 40, 88, 37, 30,
- 31, 37, 37, 106, 106, 49, 37, 38, 39, 106,
- 106, 357, 332, 108, 436, 106, 108, 61, 49, 108,
- 111, 112, 66, 67, 68, 4, 108, 108, 10, 349,
- 61, 377, 352, 4, 354, 66, 67, 68, 4, 4,
- 4, 4, 4, 4, 88, 4, 4, 37, 108, 4,
- 37, 108, 4, 32, 83, 74, 108, 88, 378, 16,
- 106, 37, 41, 42, 43, 44, 16, 111, 112, 16,
- 108, 108, 47, 10, 4, 47, 108, 37, 106, 76,
- 111, 112, 402, 37, 108, 431, 406, 6, 7, 8,
- 9, 10, 11, 12, 13, 14, 75, 107, 77, 10,
- 16, 37, 81, 37, 48, 84, 36, 4, 37, 37,
- 37, 37, 25, 16, 4, 45, 46, 4, 4, 4,
- 50, 51, 52, 53, 54, 4, 0, 0, 107, 163,
- 109, 143, 62, 63, 64, 65, 158, 351, 396, 69,
- 70, 71, 72, 73, 4, 393, -1, 288, 78, 79,
- 80, -1, -1, 38, 84, 45, 46, -1, -1, -1,
- 50, 51, 52, 53, 54, -1, -1, -1, 53, -1,
- -1, -1, 62, 63, 64, 65, 36, 107, 38, 69,
- 70, 71, 72, 73, -1, -1, -1, -1, 78, 79,
- 80, -1, -1, 53, 84, -1, -1, 82, -1, -1,
- 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
- 95, 96, 97, 98, -1, -1, -1, 107, 103, 104,
- 105, -1, 82, -1, -1, 85, 86, 87, 88, 89,
- -1, 91, 92, 93, 94, 95, 96, 97, 98, -1,
- -1, -1, -1, 103, 104, 105, 15, -1, 17, 18,
- 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
- 29, 30, 31, 32, 33, 34, 15, -1, 17, 18,
- 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
- 29, 30, 31, 32, 33, 34, 15, -1, 17, 18,
- 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
- 29, 30, 31, 32, 33, 34, 15, -1, 17, 18,
- 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
- 29, 30, 31, 32, 33, 34, 24, 25, 26, 27,
- 28, 29, 30, 31, 32, 33, 34, -1, 15, 108,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
- 27, 28, 29, 30, 31, 32, 33, 34, 15, 108,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
- 27, 28, 29, 30, 31, 32, 33, 34, 15, 108,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
- 27, 28, 29, 30, 31, 32, 33, 34, 15, 108,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
- 27, 28, 29, 30, 31, 32, 33, 34, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 15, 108, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
- 15, 108, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
- 15, 108, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
- 15, 108, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 15, 108, 17, 18, 19, 20, 21, 22,
- 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, 15, 108, 17, 18, 19, 20, 21, 22,
- 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, -1, 108, 37, 18, 19, 20, 21, 22,
- 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, -1, 108, 15, 16, 17, 18, 19, 20,
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
- 31, 32, 33, 34, -1, -1, -1, -1, -1, -1,
- -1, -1, 15, 106, 17, 18, 19, 20, 21, 22,
- 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, 19, 20, 21, 22, 23, 24, 25, 26,
- 27, 28, 29, 30, 31, 32, 33, 34, 20, 21,
- 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
- 32, 33, 34, 21, 22, 23, 24, 25, 26, 27,
- 28, 29, 30, 31, 32, 33, 34, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 34
- };
- /* -*-C-*- Note some compilers choke on comments on `#line' lines. */
- #line 3 "/usr/unsupported/share/bison.simple"
-
- /* Skeleton output parser for bison,
- Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-
- /* As a special exception, when this file is copied by Bison into a
- Bison output file, you may use that output file without restriction.
- This special exception was added by the Free Software Foundation
- in version 1.24 of Bison. */
-
- #ifndef alloca
- #ifdef __GNUC__
- #define alloca __builtin_alloca
- #else /* not GNU C. */
- #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
- #include <alloca.h>
- #else /* not sparc */
- #if defined (MSDOS) && !defined (__TURBOC__)
- #include <malloc.h>
- #else /* not MSDOS, or __TURBOC__ */
- #if defined(_AIX)
- #include <malloc.h>
- #pragma alloca
- #else /* not MSDOS, __TURBOC__, or _AIX */
- #ifdef __hpux
- #ifdef __cplusplus
- extern "C" {
- void *alloca (unsigned int);
- };
- #else /* not __cplusplus */
- void *alloca ();
- #endif /* not __cplusplus */
- #endif /* __hpux */
- #endif /* not _AIX */
- #endif /* not MSDOS, or __TURBOC__ */
- #endif /* not sparc. */
- #endif /* not GNU C. */
- #endif /* alloca not defined. */
-
- /* This is the parser code that is written into each bison parser
- when the %semantic_parser declaration is not specified in the grammar.
- It was written by Richard Stallman by simplifying the hairy parser
- used when %semantic_parser is specified. */
-
- /* Note: there must be only one dollar sign in this file.
- It is replaced by the list of actions, each action
- as one case of the switch. */
-
- #define yyerrok (yyerrstatus = 0)
- #define yyclearin (yychar = YYEMPTY)
- #define YYEMPTY -2
- #define YYEOF 0
- #define YYACCEPT return(0)
- #define YYABORT return(1)
- #define YYERROR goto yyerrlab1
- /* Like YYERROR except do call yyerror.
- This remains here temporarily to ease the
- transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
- #define YYFAIL goto yyerrlab
- #define YYRECOVERING() (!!yyerrstatus)
- #define YYBACKUP(token, value) \
- do \
- if (yychar == YYEMPTY && yylen == 1) \
- { yychar = (token), yylval = (value); \
- yychar1 = YYTRANSLATE (yychar); \
- YYPOPSTACK; \
- goto yybackup; \
- } \
- else \
- { yyerror ("syntax error: cannot back up"); YYERROR; } \
- while (0)
-
- #define YYTERROR 1
- #define YYERRCODE 256
-
- #ifndef YYPURE
- #define YYLEX yylex()
- #endif
-
- #ifdef YYPURE
- #ifdef YYLSP_NEEDED
- #ifdef YYLEX_PARAM
- #define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
- #else
- #define YYLEX yylex(&yylval, &yylloc)
- #endif
- #else /* not YYLSP_NEEDED */
- #ifdef YYLEX_PARAM
- #define YYLEX yylex(&yylval, YYLEX_PARAM)
- #else
- #define YYLEX yylex(&yylval)
- #endif
- #endif /* not YYLSP_NEEDED */
- #endif
-
- /* If nonreentrant, generate the variables here */
-
- #ifndef YYPURE
-
- int yychar; /* the lookahead symbol */
- YYSTYPE yylval; /* the semantic value of the */
- /* lookahead symbol */
-
- #ifdef YYLSP_NEEDED
- YYLTYPE yylloc; /* location data for the lookahead */
- /* symbol */
- #endif
-
- int yynerrs; /* number of parse errors so far */
- #endif /* not YYPURE */
-
- #if YYDEBUG != 0
- int yydebug; /* nonzero means print parse trace */
- /* Since this is uninitialized, it does not stop multiple parsers
- from coexisting. */
- #endif
-
- /* YYINITDEPTH indicates the initial size of the parser's stacks */
-
- #ifndef YYINITDEPTH
- #define YYINITDEPTH 200
- #endif
-
- /* YYMAXDEPTH is the maximum size the stacks can grow to
- (effective only if the built-in stack extension method is used). */
-
- #if YYMAXDEPTH == 0
- #undef YYMAXDEPTH
- #endif
-
- #ifndef YYMAXDEPTH
- #define YYMAXDEPTH 10000
- #endif
-
- /* Prevent warning if -Wstrict-prototypes. */
- #ifdef __GNUC__
- int yyparse (void);
- #endif
-
- #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
- #define __yy_memcpy(FROM,TO,COUNT) __builtin_memcpy(TO,FROM,COUNT)
- #else /* not GNU C or C++ */
- #ifndef __cplusplus
-
- /* This is the most reliable way to avoid incompatibilities
- in available built-in functions on various systems. */
- static void
- __yy_memcpy (from, to, count)
- char *from;
- char *to;
- int count;
- {
- register char *f = from;
- register char *t = to;
- register int i = count;
-
- while (i-- > 0)
- *t++ = *f++;
- }
-
- #else /* __cplusplus */
-
- /* This is the most reliable way to avoid incompatibilities
- in available built-in functions on various systems. */
- static void
- __yy_memcpy (char *from, char *to, int count)
- {
- register char *f = from;
- register char *t = to;
- register int i = count;
-
- while (i-- > 0)
- *t++ = *f++;
- }
-
- #endif
- #endif
-
- #line 192 "/usr/unsupported/share/bison.simple"
-
- /* The user can define YYPARSE_PARAM as the name of an argument to be passed
- into yyparse. The argument should have type void *.
- It should actually point to an object.
- Grammar actions can access the variable by casting it
- to the proper pointer type. */
-
- #ifdef YYPARSE_PARAM
- #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
- #else
- #define YYPARSE_PARAM
- #define YYPARSE_PARAM_DECL
- #endif
-
- int
- yyparse(YYPARSE_PARAM)
- YYPARSE_PARAM_DECL
- {
- register int yystate;
- register int yyn;
- register short *yyssp;
- register YYSTYPE *yyvsp;
- int yyerrstatus; /* number of tokens to shift before error messages enabled */
- int yychar1 = 0; /* lookahead token as an internal (translated) token number */
-
- short yyssa[YYINITDEPTH]; /* the state stack */
- YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
-
- short *yyss = yyssa; /* refer to the stacks thru separate pointers */
- YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
-
- #ifdef YYLSP_NEEDED
- YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
- YYLTYPE *yyls = yylsa;
- YYLTYPE *yylsp;
-
- #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
- #else
- #define YYPOPSTACK (yyvsp--, yyssp--)
- #endif
-
- int yystacksize = YYINITDEPTH;
-
- #ifdef YYPURE
- int yychar;
- YYSTYPE yylval;
- int yynerrs;
- #ifdef YYLSP_NEEDED
- YYLTYPE yylloc;
- #endif
- #endif
-
- YYSTYPE yyval; /* the variable used to return */
- /* semantic values from the action */
- /* routines */
-
- int yylen;
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Starting parse\n");
- #endif
-
- yystate = 0;
- yyerrstatus = 0;
- yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
-
- /* Initialize stack pointers.
- Waste one element of value and location stack
- so that they stay on the same level as the state stack.
- The wasted elements are never initialized. */
-
- yyssp = yyss - 1;
- yyvsp = yyvs;
- #ifdef YYLSP_NEEDED
- yylsp = yyls;
- #endif
-
- /* Push a new state, which is found in yystate . */
- /* In all cases, when you get here, the value and location stacks
- have just been pushed. so pushing a state here evens the stacks. */
- yynewstate:
-
- *++yyssp = yystate;
-
- if (yyssp >= yyss + yystacksize - 1)
- {
- /* Give user a chance to reallocate the stack */
- /* Use copies of these so that the &'s don't force the real ones into memory. */
- YYSTYPE *yyvs1 = yyvs;
- short *yyss1 = yyss;
- #ifdef YYLSP_NEEDED
- YYLTYPE *yyls1 = yyls;
- #endif
-
- /* Get the current used size of the three stacks, in elements. */
- int size = yyssp - yyss + 1;
-
- #ifdef yyoverflow
- /* Each stack pointer address is followed by the size of
- the data in use in that stack, in bytes. */
- #ifdef YYLSP_NEEDED
- /* This used to be a conditional around just the two extra args,
- but that might be undefined if yyoverflow is a macro. */
- yyoverflow("parser stack overflow",
- &yyss1, size * sizeof (*yyssp),
- &yyvs1, size * sizeof (*yyvsp),
- &yyls1, size * sizeof (*yylsp),
- &yystacksize);
- #else
- yyoverflow("parser stack overflow",
- &yyss1, size * sizeof (*yyssp),
- &yyvs1, size * sizeof (*yyvsp),
- &yystacksize);
- #endif
-
- yyss = yyss1; yyvs = yyvs1;
- #ifdef YYLSP_NEEDED
- yyls = yyls1;
- #endif
- #else /* no yyoverflow */
- /* Extend the stack our own way. */
- if (yystacksize >= YYMAXDEPTH)
- {
- yyerror("parser stack overflow");
- return 2;
- }
- yystacksize *= 2;
- if (yystacksize > YYMAXDEPTH)
- yystacksize = YYMAXDEPTH;
- yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
- __yy_memcpy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
- yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
- __yy_memcpy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
- #ifdef YYLSP_NEEDED
- yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
- __yy_memcpy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
- #endif
- #endif /* no yyoverflow */
-
- yyssp = yyss + size - 1;
- yyvsp = yyvs + size - 1;
- #ifdef YYLSP_NEEDED
- yylsp = yyls + size - 1;
- #endif
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Stack size increased to %d\n", yystacksize);
- #endif
-
- if (yyssp >= yyss + yystacksize - 1)
- YYABORT;
- }
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Entering state %d\n", yystate);
- #endif
-
- goto yybackup;
- yybackup:
-
- /* Do appropriate processing given the current state. */
- /* Read a lookahead token if we need one and don't already have one. */
- /* yyresume: */
-
- /* First try to decide what to do without reference to lookahead token. */
-
- yyn = yypact[yystate];
- if (yyn == YYFLAG)
- goto yydefault;
-
- /* Not known => get a lookahead token if don't already have one. */
-
- /* yychar is either YYEMPTY or YYEOF
- or a valid token in external form. */
-
- if (yychar == YYEMPTY)
- {
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Reading a token: ");
- #endif
- yychar = YYLEX;
- }
-
- /* Convert token to internal form (in yychar1) for indexing tables with */
-
- if (yychar <= 0) /* This means end of input. */
- {
- yychar1 = 0;
- yychar = YYEOF; /* Don't call YYLEX any more */
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Now at end of input.\n");
- #endif
- }
- else
- {
- yychar1 = YYTRANSLATE(yychar);
-
- #if YYDEBUG != 0
- if (yydebug)
- {
- fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
- /* Give the individual parser a way to print the precise meaning
- of a token, for further debugging info. */
- #ifdef YYPRINT
- YYPRINT (stderr, yychar, yylval);
- #endif
- fprintf (stderr, ")\n");
- }
- #endif
- }
-
- yyn += yychar1;
- if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
- goto yydefault;
-
- yyn = yytable[yyn];
-
- /* yyn is what to do for this token type in this state.
- Negative => reduce, -yyn is rule number.
- Positive => shift, yyn is new state.
- New state is final state => don't bother to shift,
- just return success.
- 0, or most negative number => error. */
-
- if (yyn < 0)
- {
- if (yyn == YYFLAG)
- goto yyerrlab;
- yyn = -yyn;
- goto yyreduce;
- }
- else if (yyn == 0)
- goto yyerrlab;
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- /* Shift the lookahead token. */
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
- #endif
-
- /* Discard the token being shifted unless it is eof. */
- if (yychar != YYEOF)
- yychar = YYEMPTY;
-
- *++yyvsp = yylval;
- #ifdef YYLSP_NEEDED
- *++yylsp = yylloc;
- #endif
-
- /* count tokens shifted since error; after three, turn off error status. */
- if (yyerrstatus) yyerrstatus--;
-
- yystate = yyn;
- goto yynewstate;
-
- /* Do the default action for the current state. */
- yydefault:
-
- yyn = yydefact[yystate];
- if (yyn == 0)
- goto yyerrlab;
-
- /* Do a reduction. yyn is the number of a rule to reduce with. */
- yyreduce:
- yylen = yyr2[yyn];
- if (yylen > 0)
- yyval = yyvsp[1-yylen]; /* implement default value of the action */
-
- #if YYDEBUG != 0
- if (yydebug)
- {
- int i;
-
- fprintf (stderr, "Reducing via rule %d (line %d), ",
- yyn, yyrline[yyn]);
-
- /* Print the symbols being reduced, and their result. */
- for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
- fprintf (stderr, "%s ", yytname[yyrhs[i]]);
- fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
- }
- #endif
-
-
- switch (yyn) {
-
- case 5:
- #line 138 "./ldgram.y"
- { ldlex_defsym(); ;
- break;}
- case 6:
- #line 140 "./ldgram.y"
- {
- ldlex_popstate();
- lang_add_assignment(exp_assop(yyvsp[-1].token,yyvsp[-2].name,yyvsp[0].etree));
- ;
- break;}
- case 7:
- #line 147 "./ldgram.y"
- {
- ldlex_mri_script ();
- PUSH_ERROR ("MRI style script");
- ;
- break;}
- case 8:
- #line 152 "./ldgram.y"
- {
- ldlex_popstate ();
- mri_draw_tree ();
- POP_ERROR ();
- ;
- break;}
- case 13:
- #line 167 "./ldgram.y"
- {
- einfo("%P%F: unrecognised keyword in MRI style script '%s'\n",yyvsp[0].name);
- ;
- break;}
- case 14:
- #line 170 "./ldgram.y"
- {
- config.map_filename = "-";
- ;
- break;}
- case 17:
- #line 176 "./ldgram.y"
- { mri_public(yyvsp[-2].name, yyvsp[0].etree); ;
- break;}
- case 18:
- #line 178 "./ldgram.y"
- { mri_public(yyvsp[-2].name, yyvsp[0].etree); ;
- break;}
- case 19:
- #line 180 "./ldgram.y"
- { mri_public(yyvsp[-1].name, yyvsp[0].etree); ;
- break;}
- case 20:
- #line 182 "./ldgram.y"
- { mri_format(yyvsp[0].name); ;
- break;}
- case 21:
- #line 184 "./ldgram.y"
- { mri_output_section(yyvsp[-2].name, yyvsp[0].etree);;
- break;}
- case 22:
- #line 186 "./ldgram.y"
- { mri_output_section(yyvsp[-1].name, yyvsp[0].etree);;
- break;}
- case 23:
- #line 188 "./ldgram.y"
- { mri_output_section(yyvsp[-2].name, yyvsp[0].etree);;
- break;}
- case 24:
- #line 190 "./ldgram.y"
- { mri_align(yyvsp[-2].name,yyvsp[0].etree); ;
- break;}
- case 25:
- #line 192 "./ldgram.y"
- { mri_align(yyvsp[-2].name,yyvsp[0].etree); ;
- break;}
- case 26:
- #line 194 "./ldgram.y"
- { mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); ;
- break;}
- case 27:
- #line 196 "./ldgram.y"
- { mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); ;
- break;}
- case 30:
- #line 200 "./ldgram.y"
- { mri_name(yyvsp[0].name); ;
- break;}
- case 31:
- #line 202 "./ldgram.y"
- { mri_alias(yyvsp[-2].name,yyvsp[0].name,0);;
- break;}
- case 32:
- #line 204 "./ldgram.y"
- { mri_alias(yyvsp[-2].name,0,(int) yyvsp[0].integer);;
- break;}
- case 33:
- #line 206 "./ldgram.y"
- { mri_base(yyvsp[0].etree); ;
- break;}
- case 34:
- #line 208 "./ldgram.y"
- { mri_truncate((unsigned int) yyvsp[0].integer); ;
- break;}
- case 37:
- #line 212 "./ldgram.y"
- { ldfile_open_command_file (yyvsp[0].name); ;
- break;}
- case 39:
- #line 214 "./ldgram.y"
- { lang_add_entry (yyvsp[0].name, false); ;
- break;}
- case 41:
- #line 219 "./ldgram.y"
- { mri_order(yyvsp[0].name); ;
- break;}
- case 42:
- #line 220 "./ldgram.y"
- { mri_order(yyvsp[0].name); ;
- break;}
- case 44:
- #line 226 "./ldgram.y"
- { mri_load(yyvsp[0].name); ;
- break;}
- case 45:
- #line 227 "./ldgram.y"
- { mri_load(yyvsp[0].name); ;
- break;}
- case 46:
- #line 232 "./ldgram.y"
- { mri_only_load(yyvsp[0].name); ;
- break;}
- case 47:
- #line 234 "./ldgram.y"
- { mri_only_load(yyvsp[0].name); ;
- break;}
- case 48:
- #line 238 "./ldgram.y"
- { yyval.name = NULL; ;
- break;}
- case 51:
- #line 245 "./ldgram.y"
- { ldlang_add_undef (yyvsp[0].name); ;
- break;}
- case 52:
- #line 247 "./ldgram.y"
- { ldlang_add_undef (yyvsp[0].name); ;
- break;}
- case 53:
- #line 251 "./ldgram.y"
- {
- ldlex_both();
- ;
- break;}
- case 54:
- #line 255 "./ldgram.y"
- {
- ldlex_popstate();
- ;
- break;}
- case 66:
- #line 279 "./ldgram.y"
- { lang_add_target(yyvsp[-1].name); ;
- break;}
- case 67:
- #line 281 "./ldgram.y"
- { ldfile_add_library_path (yyvsp[-1].name, false); ;
- break;}
- case 68:
- #line 283 "./ldgram.y"
- { lang_add_output(yyvsp[-1].name, 1); ;
- break;}
- case 69:
- #line 285 "./ldgram.y"
- { lang_add_output_format (yyvsp[-1].name, (char *) NULL,
- (char *) NULL, 1); ;
- break;}
- case 70:
- #line 288 "./ldgram.y"
- { lang_add_output_format (yyvsp[-5].name, yyvsp[-3].name, yyvsp[-1].name, 1); ;
- break;}
- case 71:
- #line 290 "./ldgram.y"
- { ldfile_set_output_arch(yyvsp[-1].name); ;
- break;}
- case 72:
- #line 292 "./ldgram.y"
- { command_line.force_common_definition = true ; ;
- break;}
- case 74:
- #line 295 "./ldgram.y"
- { lang_enter_group (); ;
- break;}
- case 75:
- #line 297 "./ldgram.y"
- { lang_leave_group (); ;
- break;}
- case 76:
- #line 299 "./ldgram.y"
- { lang_add_map(yyvsp[-1].name); ;
- break;}
- case 77:
- #line 301 "./ldgram.y"
- { ldfile_open_command_file(yyvsp[0].name); ;
- break;}
- case 79:
- #line 306 "./ldgram.y"
- { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
- (char *)NULL); ;
- break;}
- case 80:
- #line 309 "./ldgram.y"
- { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
- (char *)NULL); ;
- break;}
- case 81:
- #line 312 "./ldgram.y"
- { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
- (char *)NULL); ;
- break;}
- case 82:
- #line 315 "./ldgram.y"
- { lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
- (char *)NULL); ;
- break;}
- case 83:
- #line 318 "./ldgram.y"
- { lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
- (char *)NULL); ;
- break;}
- case 84:
- #line 321 "./ldgram.y"
- { lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
- (char *)NULL); ;
- break;}
- case 89:
- #line 337 "./ldgram.y"
- { lang_add_entry (yyvsp[-1].name, false); ;
- break;}
- case 91:
- #line 343 "./ldgram.y"
- { lang_add_wild(yyvsp[0].name, current_file); ;
- break;}
- case 92:
- #line 345 "./ldgram.y"
- { lang_add_wild(yyvsp[0].name, current_file); ;
- break;}
- case 93:
- #line 350 "./ldgram.y"
- {
- lang_add_wild((char *)NULL, yyvsp[0].name);
- ;
- break;}
- case 94:
- #line 354 "./ldgram.y"
- {
- current_file = (char *)NULL;
- ;
- break;}
- case 96:
- #line 360 "./ldgram.y"
- {
- current_file =yyvsp[0].name;
- ;
- break;}
- case 98:
- #line 365 "./ldgram.y"
- {
- current_file = (char *)NULL;
- ;
- break;}
- case 101:
- #line 374 "./ldgram.y"
- {
- lang_add_attribute(lang_object_symbols_statement_enum);
- ;
- break;}
- case 103:
- #line 379 "./ldgram.y"
- {
-
- lang_add_attribute(lang_constructors_statement_enum);
- ;
- break;}
- case 105:
- #line 385 "./ldgram.y"
- {
- lang_add_data((int) yyvsp[-3].integer,yyvsp[-1].etree);
- ;
- break;}
- case 106:
- #line 390 "./ldgram.y"
- {
- lang_add_fill
- (exp_get_value_int(yyvsp[-1].etree,
- 0,
- "fill value",
- lang_first_phase_enum));
- ;
- break;}
- case 111:
- #line 411 "./ldgram.y"
- { yyval.integer = yyvsp[0].token; ;
- break;}
- case 112:
- #line 413 "./ldgram.y"
- { yyval.integer = yyvsp[0].token; ;
- break;}
- case 113:
- #line 415 "./ldgram.y"
- { yyval.integer = yyvsp[0].token; ;
- break;}
- case 114:
- #line 417 "./ldgram.y"
- { yyval.integer = yyvsp[0].token; ;
- break;}
- case 115:
- #line 422 "./ldgram.y"
- {
- yyval.integer = exp_get_value_int(yyvsp[0].etree,
- 0,
- "fill value",
- lang_first_phase_enum);
- ;
- break;}
- case 116:
- #line 428 "./ldgram.y"
- { yyval.integer = 0; ;
- break;}
- case 117:
- #line 435 "./ldgram.y"
- { yyval.token = '+'; ;
- break;}
- case 118:
- #line 437 "./ldgram.y"
- { yyval.token = '-'; ;
- break;}
- case 119:
- #line 439 "./ldgram.y"
- { yyval.token = '*'; ;
- break;}
- case 120:
- #line 441 "./ldgram.y"
- { yyval.token = '/'; ;
- break;}
- case 121:
- #line 443 "./ldgram.y"
- { yyval.token = LSHIFT; ;
- break;}
- case 122:
- #line 445 "./ldgram.y"
- { yyval.token = RSHIFT; ;
- break;}
- case 123:
- #line 447 "./ldgram.y"
- { yyval.token = '&'; ;
- break;}
- case 124:
- #line 449 "./ldgram.y"
- { yyval.token = '|'; ;
- break;}
- case 127:
- #line 459 "./ldgram.y"
- {
- lang_add_assignment (exp_assop (yyvsp[-1].token, yyvsp[-2].name, yyvsp[0].etree));
- ;
- break;}
- case 128:
- #line 463 "./ldgram.y"
- {
- lang_add_assignment (exp_assop ('=', yyvsp[-2].name,
- exp_binop (yyvsp[-1].token,
- exp_nameop (NAME,
- yyvsp[-2].name),
- yyvsp[0].etree)));
- ;
- break;}
- case 129:
- #line 471 "./ldgram.y"
- {
- lang_add_assignment (exp_provide (yyvsp[-3].name, yyvsp[-1].etree));
- ;
- break;}
- case 136:
- #line 493 "./ldgram.y"
- { region = lang_memory_region_lookup(yyvsp[0].name); ;
- break;}
- case 138:
- #line 499 "./ldgram.y"
- { region->current =
- region->origin =
- exp_get_vma(yyvsp[0].etree, 0L,"origin", lang_first_phase_enum);
- ;
- break;}
- case 139:
- #line 505 "./ldgram.y"
- { region->length = exp_get_vma(yyvsp[0].etree,
- ~((bfd_vma)0),
- "length",
- lang_first_phase_enum);
- ;
- break;}
- case 140:
- #line 514 "./ldgram.y"
- {
- lang_set_flags(®ion->flags, yyvsp[-1].name);
- ;
- break;}
- case 142:
- #line 523 "./ldgram.y"
- { lang_startup(yyvsp[-1].name); ;
- break;}
- case 144:
- #line 529 "./ldgram.y"
- { ldemul_hll((char *)NULL); ;
- break;}
- case 145:
- #line 534 "./ldgram.y"
- { ldemul_hll(yyvsp[0].name); ;
- break;}
- case 146:
- #line 536 "./ldgram.y"
- { ldemul_hll(yyvsp[0].name); ;
- break;}
- case 148:
- #line 544 "./ldgram.y"
- { ldemul_syslib(yyvsp[0].name); ;
- break;}
- case 150:
- #line 550 "./ldgram.y"
- { lang_float(true); ;
- break;}
- case 151:
- #line 552 "./ldgram.y"
- { lang_float(false); ;
- break;}
- case 152:
- #line 556 "./ldgram.y"
- { ldlex_expression(); ;
- break;}
- case 153:
- #line 558 "./ldgram.y"
- { ldlex_popstate(); yyval.etree=yyvsp[0].etree;;
- break;}
- case 154:
- #line 563 "./ldgram.y"
- { yyval.etree = exp_unop('-', yyvsp[0].etree); ;
- break;}
- case 155:
- #line 565 "./ldgram.y"
- { yyval.etree = yyvsp[-1].etree; ;
- break;}
- case 156:
- #line 567 "./ldgram.y"
- { yyval.etree = exp_unop((int) yyvsp[-3].integer,yyvsp[-1].etree); ;
- break;}
- case 157:
- #line 569 "./ldgram.y"
- { yyval.etree = exp_unop('!', yyvsp[0].etree); ;
- break;}
- case 158:
- #line 571 "./ldgram.y"
- { yyval.etree = yyvsp[0].etree; ;
- break;}
- case 159:
- #line 573 "./ldgram.y"
- { yyval.etree = exp_unop('~', yyvsp[0].etree);;
- break;}
- case 160:
- #line 576 "./ldgram.y"
- { yyval.etree = exp_binop('*', yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 161:
- #line 578 "./ldgram.y"
- { yyval.etree = exp_binop('/', yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 162:
- #line 580 "./ldgram.y"
- { yyval.etree = exp_binop('%', yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 163:
- #line 582 "./ldgram.y"
- { yyval.etree = exp_binop('+', yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 164:
- #line 584 "./ldgram.y"
- { yyval.etree = exp_binop('-' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 165:
- #line 586 "./ldgram.y"
- { yyval.etree = exp_binop(LSHIFT , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 166:
- #line 588 "./ldgram.y"
- { yyval.etree = exp_binop(RSHIFT , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 167:
- #line 590 "./ldgram.y"
- { yyval.etree = exp_binop(EQ , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 168:
- #line 592 "./ldgram.y"
- { yyval.etree = exp_binop(NE , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 169:
- #line 594 "./ldgram.y"
- { yyval.etree = exp_binop(LE , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 170:
- #line 596 "./ldgram.y"
- { yyval.etree = exp_binop(GE , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 171:
- #line 598 "./ldgram.y"
- { yyval.etree = exp_binop('<' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 172:
- #line 600 "./ldgram.y"
- { yyval.etree = exp_binop('>' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 173:
- #line 602 "./ldgram.y"
- { yyval.etree = exp_binop('&' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 174:
- #line 604 "./ldgram.y"
- { yyval.etree = exp_binop('^' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 175:
- #line 606 "./ldgram.y"
- { yyval.etree = exp_binop('|' , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 176:
- #line 608 "./ldgram.y"
- { yyval.etree = exp_trinop('?' , yyvsp[-4].etree, yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 177:
- #line 610 "./ldgram.y"
- { yyval.etree = exp_binop(ANDAND , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 178:
- #line 612 "./ldgram.y"
- { yyval.etree = exp_binop(OROR , yyvsp[-2].etree, yyvsp[0].etree); ;
- break;}
- case 179:
- #line 614 "./ldgram.y"
- { yyval.etree = exp_nameop(DEFINED, yyvsp[-1].name); ;
- break;}
- case 180:
- #line 616 "./ldgram.y"
- { yyval.etree = exp_intop(yyvsp[0].integer); ;
- break;}
- case 181:
- #line 618 "./ldgram.y"
- { yyval.etree = exp_nameop(SIZEOF_HEADERS,0); ;
- break;}
- case 182:
- #line 621 "./ldgram.y"
- { yyval.etree = exp_nameop(SIZEOF,yyvsp[-1].name); ;
- break;}
- case 183:
- #line 623 "./ldgram.y"
- { yyval.etree = exp_nameop(ADDR,yyvsp[-1].name); ;
- break;}
- case 184:
- #line 625 "./ldgram.y"
- { yyval.etree = exp_unop(ABSOLUTE, yyvsp[-1].etree); ;
- break;}
- case 185:
- #line 627 "./ldgram.y"
- { yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); ;
- break;}
- case 186:
- #line 629 "./ldgram.y"
- { yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); ;
- break;}
- case 187:
- #line 631 "./ldgram.y"
- { yyval.etree = exp_nameop(NAME,yyvsp[0].name); ;
- break;}
- case 188:
- #line 636 "./ldgram.y"
- { yyval.etree = yyvsp[-1].etree; ;
- break;}
- case 189:
- #line 637 "./ldgram.y"
- { yyval.etree = 0; ;
- break;}
- case 190:
- #line 640 "./ldgram.y"
- { ldlex_expression(); ;
- break;}
- case 191:
- #line 642 "./ldgram.y"
- { ldlex_popstate(); ;
- break;}
- case 192:
- #line 644 "./ldgram.y"
- {
- lang_enter_output_section_statement(yyvsp[-5].name, yyvsp[-3].etree,
- sectype,
- 0, 0, 0, yyvsp[-2].etree);
- ;
- break;}
- case 193:
- #line 650 "./ldgram.y"
- {ldlex_expression();;
- break;}
- case 194:
- #line 651 "./ldgram.y"
- {
- ldlex_popstate();
- lang_leave_output_section_statement(yyvsp[0].integer, yyvsp[-2].name);
- ;
- break;}
- case 196:
- #line 660 "./ldgram.y"
- { ldlex_expression (); ;
- break;}
- case 197:
- #line 662 "./ldgram.y"
- {
- ldlex_popstate ();
- lang_add_assignment (exp_assop ('=', ".", yyvsp[0].etree));
- ;
- break;}
- case 199:
- #line 670 "./ldgram.y"
- { sectype = noload_section; ;
- break;}
- case 200:
- #line 671 "./ldgram.y"
- { sectype = dsect_section; ;
- break;}
- case 201:
- #line 672 "./ldgram.y"
- { sectype = copy_section; ;
- break;}
- case 202:
- #line 673 "./ldgram.y"
- { sectype = info_section; ;
- break;}
- case 203:
- #line 674 "./ldgram.y"
- { sectype = overlay_section; ;
- break;}
- case 205:
- #line 679 "./ldgram.y"
- { sectype = normal_section; ;
- break;}
- case 206:
- #line 683 "./ldgram.y"
- { yyval.etree = yyvsp[-2].etree; ;
- break;}
- case 207:
- #line 684 "./ldgram.y"
- { yyval.etree = (etree_type *)NULL; ;
- break;}
- case 208:
- #line 689 "./ldgram.y"
- { yyval.etree = yyvsp[-3].etree; ;
- break;}
- case 209:
- #line 691 "./ldgram.y"
- { yyval.etree = yyvsp[-7].etree; ;
- break;}
- case 210:
- #line 696 "./ldgram.y"
- { yyval.name = yyvsp[0].name; ;
- break;}
- case 211:
- #line 697 "./ldgram.y"
- { yyval.name = "*default*"; ;
- break;}
- case 213:
- #line 703 "./ldgram.y"
- {
- lang_section_in_phdr (yyvsp[0].name);
- ;
- break;}
- case 217:
- #line 718 "./ldgram.y"
- { ldlex_expression (); ;
- break;}
- case 218:
- #line 719 "./ldgram.y"
- { ldlex_popstate (); ;
- break;}
- case 219:
- #line 721 "./ldgram.y"
- {
- lang_new_phdr (yyvsp[-5].name, yyvsp[-3].etree, yyvsp[-2].phdr.filehdr, yyvsp[-2].phdr.phdrs, yyvsp[-2].phdr.at,
- yyvsp[-2].phdr.flags);
- ;
- break;}
- case 220:
- #line 729 "./ldgram.y"
- {
- yyval.etree = yyvsp[0].etree;
-
- if (yyvsp[0].etree->type.node_class == etree_name
- && yyvsp[0].etree->type.node_code == NAME)
- {
- const char *s;
- unsigned int i;
- static const char * const phdr_types[] =
- {
- "PT_NULL", "PT_LOAD", "PT_DYNAMIC",
- "PT_INTERP", "PT_NOTE", "PT_SHLIB",
- "PT_PHDR"
- };
-
- s = yyvsp[0].etree->name.name;
- for (i = 0;
- i < sizeof phdr_types / sizeof phdr_types[0];
- i++)
- if (strcmp (s, phdr_types[i]) == 0)
- {
- yyval.etree = exp_intop (i);
- break;
- }
- }
- ;
- break;}
- case 221:
- #line 759 "./ldgram.y"
- {
- memset (&yyval.phdr, 0, sizeof (struct phdr_info));
- ;
- break;}
- case 222:
- #line 763 "./ldgram.y"
- {
- yyval.phdr = yyvsp[0].phdr;
- if (strcmp (yyvsp[-2].name, "FILEHDR") == 0 && yyvsp[-1].etree == NULL)
- yyval.phdr.filehdr = true;
- else if (strcmp (yyvsp[-2].name, "PHDRS") == 0 && yyvsp[-1].etree == NULL)
- yyval.phdr.phdrs = true;
- else if (strcmp (yyvsp[-2].name, "FLAGS") == 0 && yyvsp[-1].etree != NULL)
- yyval.phdr.flags = yyvsp[-1].etree;
- else
- einfo ("%X%P:%S: PHDRS syntax error at `%s'\n", yyvsp[-2].name);
- ;
- break;}
- case 223:
- #line 775 "./ldgram.y"
- {
- yyval.phdr = yyvsp[0].phdr;
- yyval.phdr.at = yyvsp[-2].etree;
- ;
- break;}
- case 224:
- #line 783 "./ldgram.y"
- {
- yyval.etree = NULL;
- ;
- break;}
- case 225:
- #line 787 "./ldgram.y"
- {
- yyval.etree = yyvsp[-1].etree;
- ;
- break;}
- }
- /* the action file gets copied in in place of this dollarsign */
- #line 487 "/usr/unsupported/share/bison.simple"
-
- yyvsp -= yylen;
- yyssp -= yylen;
- #ifdef YYLSP_NEEDED
- yylsp -= yylen;
- #endif
-
- #if YYDEBUG != 0
- if (yydebug)
- {
- short *ssp1 = yyss - 1;
- fprintf (stderr, "state stack now");
- while (ssp1 != yyssp)
- fprintf (stderr, " %d", *++ssp1);
- fprintf (stderr, "\n");
- }
- #endif
-
- *++yyvsp = yyval;
-
- #ifdef YYLSP_NEEDED
- yylsp++;
- if (yylen == 0)
- {
- yylsp->first_line = yylloc.first_line;
- yylsp->first_column = yylloc.first_column;
- yylsp->last_line = (yylsp-1)->last_line;
- yylsp->last_column = (yylsp-1)->last_column;
- yylsp->text = 0;
- }
- else
- {
- yylsp->last_line = (yylsp+yylen-1)->last_line;
- yylsp->last_column = (yylsp+yylen-1)->last_column;
- }
- #endif
-
- /* Now "shift" the result of the reduction.
- Determine what state that goes to,
- based on the state we popped back to
- and the rule number reduced by. */
-
- yyn = yyr1[yyn];
-
- yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
- if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
- yystate = yytable[yystate];
- else
- yystate = yydefgoto[yyn - YYNTBASE];
-
- goto yynewstate;
-
- yyerrlab: /* here on detecting error */
-
- if (! yyerrstatus)
- /* If not already recovering from an error, report this error. */
- {
- ++yynerrs;
-
- #ifdef YYERROR_VERBOSE
- yyn = yypact[yystate];
-
- if (yyn > YYFLAG && yyn < YYLAST)
- {
- int size = 0;
- char *msg;
- int x, count;
-
- count = 0;
- /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
- for (x = (yyn < 0 ? -yyn : 0);
- x < (sizeof(yytname) / sizeof(char *)); x++)
- if (yycheck[x + yyn] == x)
- size += strlen(yytname[x]) + 15, count++;
- msg = (char *) malloc(size + 15);
- if (msg != 0)
- {
- strcpy(msg, "parse error");
-
- if (count < 5)
- {
- count = 0;
- for (x = (yyn < 0 ? -yyn : 0);
- x < (sizeof(yytname) / sizeof(char *)); x++)
- if (yycheck[x + yyn] == x)
- {
- strcat(msg, count == 0 ? ", expecting `" : " or `");
- strcat(msg, yytname[x]);
- strcat(msg, "'");
- count++;
- }
- }
- yyerror(msg);
- free(msg);
- }
- else
- yyerror ("parse error; also virtual memory exceeded");
- }
- else
- #endif /* YYERROR_VERBOSE */
- yyerror("parse error");
- }
-
- goto yyerrlab1;
- yyerrlab1: /* here on error raised explicitly by an action */
-
- if (yyerrstatus == 3)
- {
- /* if just tried and failed to reuse lookahead token after an error, discard it. */
-
- /* return failure if at end of input */
- if (yychar == YYEOF)
- YYABORT;
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
- #endif
-
- yychar = YYEMPTY;
- }
-
- /* Else will try to reuse lookahead token
- after shifting the error token. */
-
- yyerrstatus = 3; /* Each real token shifted decrements this */
-
- goto yyerrhandle;
-
- yyerrdefault: /* current state does not do anything special for the error token. */
-
- #if 0
- /* This is wrong; only states that explicitly want error tokens
- should shift them. */
- yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
- if (yyn) goto yydefault;
- #endif
-
- yyerrpop: /* pop the current state because it cannot handle the error token */
-
- if (yyssp == yyss) YYABORT;
- yyvsp--;
- yystate = *--yyssp;
- #ifdef YYLSP_NEEDED
- yylsp--;
- #endif
-
- #if YYDEBUG != 0
- if (yydebug)
- {
- short *ssp1 = yyss - 1;
- fprintf (stderr, "Error: state stack now");
- while (ssp1 != yyssp)
- fprintf (stderr, " %d", *++ssp1);
- fprintf (stderr, "\n");
- }
- #endif
-
- yyerrhandle:
-
- yyn = yypact[yystate];
- if (yyn == YYFLAG)
- goto yyerrdefault;
-
- yyn += YYTERROR;
- if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
- goto yyerrdefault;
-
- yyn = yytable[yyn];
- if (yyn < 0)
- {
- if (yyn == YYFLAG)
- goto yyerrpop;
- yyn = -yyn;
- goto yyreduce;
- }
- else if (yyn == 0)
- goto yyerrpop;
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- #if YYDEBUG != 0
- if (yydebug)
- fprintf(stderr, "Shifting error token, ");
- #endif
-
- *++yyvsp = yylval;
- #ifdef YYLSP_NEEDED
- *++yylsp = yylloc;
- #endif
-
- yystate = yyn;
- goto yynewstate;
- }
- #line 792 "./ldgram.y"
-
- void
- yyerror(arg)
- const char *arg;
- {
- if (ldfile_assumed_script)
- einfo ("%P:%s: file format not recognized; treating as linker script\n",
- ldfile_input_filename);
- if (error_index > 0 && error_index < ERROR_NAME_MAX)
- einfo ("%P%F:%S: %s in %s\n", arg, error_names[error_index-1]);
- else
- einfo ("%P%F:%S: %s\n", arg);
- }
-